diff --git a/pages/index.js b/pages/index.js
index b76a1de..8f8d610 100644
--- a/pages/index.js
+++ b/pages/index.js
@@ -1,114 +1,49 @@
-import Head from 'next/head'
-import Image from 'next/image'
-import { Inter } from 'next/font/google'
-import styles from '@/styles/Home.module.css'
+async function get_stats(){
-const inter = Inter({ subsets: ['latin'] })
-export default function Home() {
+ const inputfieldname = document.getElementById("username")
+ const username = inputfieldname.value
+
+ console.log(username)
+ const player_details_url = `https://api.chess.com/pub/player/${username}`
+ const player_details_response = await fetch(player_details_url)
+
+ const player_details = await player_details_response.json();
+
+ document.querySelector("#avatar_image").src = player_details.avatar
+ document.querySelector("#avatar_name").innerHTML = player_details.name
+
+
+
+
+
+ let dictionary = {
+ photo : player_details.avatar,
+ name : player_details.name,
+ username: player_details.username,
+ location: player_details.location,
+ league : player_details.league
+ }
+
+
+
+
+ return dictionary
+
+}
+
+function Chess(){
+
return (
- <>
-
- Create Next App
-
-
-
-
-
-
-
- Get started by editing
- pages/index.js
-
-
-
-
-
-
-
-
-
-
- >
+
+
+
+
+
+
+
+
)
}
+
+export default Chess
\ No newline at end of file